package com.pcbly.web.business.menu;

import java.util.List;

import com.pcbly.web.bean.system.MenuBean;
import com.pcbly.web.bean.system.MenuChildBean;
import com.pcbly.web.bean.user.UserBean;
import com.pcbly.web.business.BaseService;

public interface MenuService extends BaseService<MenuBean> {

	List<MenuBean> queryListsByRoleIdAndParentId(String roleIds, String parentId)
			throws Exception;

	List<MenuBean> queryListsByUserAndParentId(UserBean user, String parentId)
			throws Exception;

	List<MenuBean> queryListsByUserIdAndParentId(String UserId, String parentId)
			throws Exception;

	MenuBean getMenuById(String id) throws Exception;

	List<MenuBean> queryListsByParentId(String parentid) throws Exception;

	List<MenuChildBean> queryMenuChildBeansByParentId(String parentId)
			throws Exception;

	List<MenuChildBean> queryMenuChildBeansByParentId(String UserId,
			String parentId) throws Exception;

	void removeMenu(String id) throws Exception;

	void removeMenuByIds(String ids) throws Exception;

	void saveMenu(MenuBean menu) throws Exception;

	List<MenuBean> getMenuList() throws Exception;

	List<MenuBean> loadTopMenus() throws Exception;

	List<MenuBean> loadMenusByUserId(String userId) throws Exception;
}
